#include "stack.h"

void testStack()
{
	ST p;
	StackInit(&p);
	StackPush(&p, 1);
	StackPush(&p, 2);
	StackPush(&p, 3);
	StackPop(&p);
	StackPop(&p);
	printf("%d\n", StackTop(&p));
	StackPush(&p, 4);
	StackPush(&p, 5);
	StackSize(&p);
	while (p.top)
	{
		printf("%d\n", StackTop(&p));
		StackPop(&p);
	}
	StackDestroy(&p);
}

int main()
{
	testStack();
	return 0;
}